package cn.wolfcode.crm5.service.impl;

import cn.wolfcode.crm5.mapper.PermissionMapper;
import cn.wolfcode.crm5.service.IPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PermissionServiceImpl implements IPermissionService {

    @Autowired
    private PermissionMapper permissionMapper;

    //通过用户id,查询所有权限
    @Override
    public List<String> findPermissionByUserId(Long id) {
        List<String> permissions = permissionMapper.findPermissionByUserId(id);
        return permissions;
    }
}
